package org.rcy.framework.api.storage;

import java.io.File;
import java.io.InputStream;

/**
 * @author 吴康桥
 * @Description
 * @date 2023/7/4 10:55
 */

public interface StorageService {
	String uploadFile(byte[] bytes);
	String uploadFile(File file) throws Exception;
	String uploadFile(byte[] bytes,String secretKey) throws Exception;
	void uploadFile(String fileKey, InputStream input, long size) throws Exception;
	byte[] downloadFile(String fileKey) throws Exception;
	byte[] downloadFile(String fileKey,String secretKey) throws Exception;
}
